package com.jbit.dm_160.utils;

public class ResponseUtils {
    public static <T> ResponseEntity<T> sendSuccess(String errorCode,T t){
        return new ResponseEntity<>("",errorCode,"",t);
    }

    public static <T> ResponseEntity<T> sendSuccess(T t){
        return new ResponseEntity<>("","0000","",t);
    }
    public static <T> ResponseEntity<T> sendError(String errorCode,String msg){
        return new ResponseEntity<>("",errorCode,msg,null);
    }
}
